package api

import (
	"github.com/gin-gonic/gin"
	"mz_water/controller/api/parsing"
	"mz_water/controller/api/user"
	"mz_water/middleware"
)

func Routers(r *gin.RouterGroup) {
	rr := r.Group("/api")
	rr.Use(middleware.Check())
	//rr.Use(middleware.Authentication())
	rr.GET("getUser", user.GetUserList)
	rr.GET("getAllUser", user.GetAllList)
	rr.POST("addUser", user.AddUser)
	rr.POST("parse", parsing.Parse)
}
